#!/bin/sh
# auto mail for system info

# time
/bin/date +%F >> ~/app/shell/sysinfo
echo >> ~/app/shell/sysinfo

# disk info
echo "disk info:" >> ~/app/shell/sysinfo
/bin/df -h >> ~/app/shell/sysinfo
echo >> ~/app/shell/sysinfo

echo "online users" >> ~/app/shell/sysinfo
/usr/bin/who | /bin/grep -v root >> ~/app/shell/sysinfo
echo >> ~/app/shell/sysinfo

echo "memory info:" >> ~/app/shell/sysinfo
/usr/bin/free -m >> ~/app/shell/sysinfo
echo >> ~/app/shell/sysinfo





